package com.studerb.tests.nntp;

import java.util.Timer;
import java.util.TimerTask;

public class MainTimerTask {
	public void start(){
		Timer timer = new Timer();
		TimerTest task = new TimerTest();
		timer.schedule(task, 500, 5000);
	}

	public static void main(String[] args) {
		new MainTimerTask().start();
	}
	
	private class TimerTest extends TimerTask {
		@Override public void run() {
			System.out.println("Time: " + System.currentTimeMillis());
		}
		
	}
}
